package cn.lg.soar.generator.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
public class WebFieldConfig {

    @ApiModelProperty("数据库字段名")
    private String name;

    @ApiModelProperty("配置字段")
    private String field;

    @ApiModelProperty("配置标题")
    private String label;

    @ApiModelProperty("数据类型")
    private String dataType;

    @ApiModelProperty("配置参数")
    private String params;

    @ApiModelProperty("是否主键字段")
    private boolean pk;

    @ApiModelProperty(value = "可为空")
    private boolean nullable;

    @ApiModelProperty(value = "启用")
    private boolean enabled;

    @ApiModelProperty("表格配置")
    private String table;

    @ApiModelProperty("搜索栏配置")
    private String search;

    @ApiModelProperty("表单配置")
    private String form;

    @ApiModelProperty("详情配置")
    private String detail;
}
